package com.itheima.niming;

public class SwimmingDemo  {


    public static void main(String[] args) {

    }


    //在测试类中提供一个方法goSwimming，方法需要接收一个Swimming类型的参数
    public void goSwimming(Swimming swimming) {
        swimming.swimming();
    }
//    goSwimming()

}
